package com.jiliang.jiliangserver.service;

import com.jiliang.jiliangserver.domain.*;
import com.jiliang.jiliangserver.model.AjaxResult;

import java.util.List;
import java.util.Map;

/**
 * 物资服务类
 */
public interface MaterialService {

    public void createBattery(Battery battery);

    public void createBrand(Brand brand);

    public Brand selectBrandById(Long id);

    public List<Brand> selectBrandList(Brand brand);

    public Battery selectBatteryById(Long id);

    public List<Battery> selectBatteryList(Battery battery);

    public void changeBattery(MaterialLog materialLog);

    public List<Map> selectBatteryBrandCounts(Battery battery);

    public int createJlModel(JlModel jlModel);

    public List<JlModel> selectJlModelList(JlModel jlModel);

    public JlModel selectJlModelById(Long id);

    public int updateJlModel(JlModel jlModel);

    public Simcard selectSimcardById(Long simcardId);

    public int createSimcard(Simcard simcard);

    public List<Simcard> selectSimcardList(Simcard simcard);

    public int updateSimcard(Simcard simcard);

    public int createWaterUse(WaterUse waterUse);

    public List<WaterUse> selectWaterUseList(WaterUse waterUse);

    public int updateWaterUse(WaterUse waterUse);

    public WaterUse selectWaterUseById(Long id);

    public int createYcTemplate(YcTemplate ycTemplate);

    public List<YcTemplate> selectYcTemplateList(YcTemplate ycTemplate);

    public int updateYcTemplate(YcTemplate ycTemplate);

    public YcTemplate selectYcTemplateById(Long id);

}
